package com.ideabove.data;

import android.os.Parcel;
import android.os.Parcelable;

public class PushedData implements Parcelable{
	
	String title;
	String type;
	String value;
	
	public PushedData() {
		;
	}
	
	public PushedData(Parcel in) {
		readFromParcel(in);
	}
	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	
	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}
	@Override
	public void writeToParcel(Parcel dest, int flags) {
		// TODO Auto-generated method stub
		dest.writeString(title);
		dest.writeString(type);
		dest.writeString(value);
	}
	
	private void readFromParcel(Parcel in) {
		 
		// We just need to read back each
		// field in the order that it was
		// written to the parcel
		title = in.readString();
		type = in.readString();
		value = in.readString();
	}
	
	public static final Parcelable.Creator CREATOR = new Parcelable.Creator() {

		public PushedData createFromParcel(Parcel in) {
			return new PushedData(in);
		}

		public PushedData[] newArray(int size) {
			return new PushedData[size];
		}
	};
	
}
